package com.cdxy.model.dto.base.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: tangy
 * @Date: 2020/2/20 13:45
 */
@Data
@ApiModel
public class BasePageResp<T> implements Serializable {

    private static final long serialVersionUID = 6619281153706872048L;

    @ApiModelProperty(value = "返回数据")
    private List<T> records;

    @ApiModelProperty(value = "总条数")
    private Integer total;

    @ApiModelProperty(value = "每页数量")
    private Integer size;

    @ApiModelProperty(value = "当前页")
    private Integer current;

    @ApiModelProperty(value = "是否最后一页")
    private Boolean lastPage;
}
